package com.sfzy.mapper;

import com.sfzy.entity.Answer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AnswerMapper {
    //增
    int addAnswer(Answer answer);
    //删
    int deleteAnswer(int id);
    //改
    int updateAnswer(Answer answer);
    //根据id查
    Answer getAnswerById(int id);
    //分页查
    List<Answer> getAnswers(Answer answer);
}
